import app from './modules/app.js'
import user from './modules/user.js'
import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)


const store = new Vuex.Store({
	modules: {
		app,
		user,
	},
	getters: {
		isLogin() {
			return user.state.isLogin
		}
	}
})

export default store
